<template>
  <div style="background:#fff;">
    <el-descriptions title="设备信息" :column="1">
      <el-descriptions-item label="设备名称">{{ infoData.name || '' }}</el-descriptions-item>
      <el-descriptions-item label="设备编号">{{ infoData.serialno || '' }}</el-descriptions-item>
    </el-descriptions>
    <div class="h12" /><div class="h12" /><div class="h12" />
    <el-descriptions title="统计信息" :column="1">
      <el-descriptions-item label="灌溉总量">{{ infoData.total || 0 }}</el-descriptions-item>
      <el-descriptions-item label="灌溉次数">{{ infoData.count || 0 }}</el-descriptions-item>
      <el-descriptions-item label="最多灌溉">{{ infoData.max || 0 }}</el-descriptions-item>
      <el-descriptions-item label="最少灌溉">{{ infoData.min || 0 }}</el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script>
export default {
  props: {
    infoData: {
      type: Object,
      default() {
        return {}
      }
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
